package com.yipinhouse.employee.client;

import com.yipinhouse.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient(contextId = "achievementQueryClient", name = "employee")
public interface AchievementQueryClient {

    /**
     * 经纪人发送意向连接接口
     *
     * @return
     */
    @GetMapping("/sendIntention")
    Result sendIntention(@RequestParam("houseId") Integer houseId, @RequestParam("brokerId") Integer brokerId,
                         @RequestParam("houseType") String houseType,
                         @RequestParam("amount") BigDecimal amount) throws Exception;
}
